<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tipask's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset={APP_CHARSET}">
<link media="all" type="text/css" href="css/admin/admincp.css" rel="stylesheet" />
</head>

<body>

<div id="append">
</div>

<div class="container">

	<!--{if isset($message)}-->
		<!--{eval $type=isset($type)?$type:'correctmsg'; }-->
		<div class="{$type}"><p>{$message}</p></div>
	<!--{/if}-->
	
	<div class="note fixwidthdec">
		<p class="i">允许/禁止的 Email 地址只需填写 Email 的域名部分，每行一个域名，例如 @hotmail.com</p>
	</div>
	<div class="mainbox nomargin">
		<form action="index.php?c=admin_setting&a=register" method="post">
			<table class="opt">
				<tr>
					<th colspan="2">允许新用户注册:</th>
				</tr>
				<tr>
					<td>
					<input class="radio"  type="radio"  {if 1==$setting['allow_register'] }checked{/if}  value="1" name="allow_register"><label for="yes">是</label>
					<input class="radio"  type="radio"  {if 0==$setting['allow_register'] }checked{/if} value="0" name="allow_register"><label for="no">否</label>
					</td>
					<td valign="top">若不需要新用户注册，可以到用户管理里面手动添加用户。</td>
				</tr>
				<tr>
					<th colspan="2">允许的 Email 地址:</th>
				</tr>
				<tr>
					<td><textarea class="area" name="access_email">{$setting['access_email']}</textarea></td>
					<td valign="top">只允许使用这些域名结尾的 Email 地址注册。</td>
				</tr>
				<tr>
					<th colspan="2">禁止的 Email 地址:</th>
				</tr>
				<tr>
					<td><textarea class="area" name="censor_email">{$setting['censor_email']}</textarea></td>
					<td valign="top">禁止使用这些域名结尾的 Email 地址注册。</td>
				</tr>
				<tr>
					<th colspan="2">禁止的用户名:</th>
				</tr>
				<tr>
					<td><textarea class="area" name="censor_username">{$setting['censor_username']}</textarea></td>
					<td valign="top">可以设置通配符，每个关键字一行，可使用通配符 &quot;*&quot; 如 &quot;*版主*&quot;(不含引号)。</td>
				</tr>
			</table>
			<div class="opt">
				<input class="btn" tabindex="3" type="submit" value=" 提 交 " name="submit"></div>
		</form>
	</div>
</div>

</body>

</html>
